package com.example.service.serviceImple;

import com.example.dao.FocusDao;
import com.example.entity.Focus;
import com.example.service.FocusService;
import com.example.util.BeanFactroy;

public class FocusServiceImpl implements FocusService {
    private FocusDao focusDao = BeanFactroy.createBean(FocusDao.class);
    @Override
    public Focus isFocus(Long userId, Long authordId) {
        return focusDao.isFocus(userId,authordId);
    }

    @Override
    public int focus(Focus focus) {
        return focusDao.focus(focus);
    }

    @Override
    public int cancelFocus(Long userId, Long authorId) {
        return focusDao.cancelFocus(userId,authorId);
    }

    @Override
    public int updateFocus(Long userId) {
        return focusDao.updateFocus(userId);
    }

    @Override
    public int addfans(Long userId) {
        return focusDao.addFan(userId);
    }

    @Override
    public int reducefans(Long userId) {
        return focusDao.reduceFan(userId);
    }
}
